<form method="post" enctype="multipart/form-data" id="form-order">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th style="width: 1px;display:none"><input type="checkbox" onclick="$('input[name*=\'ids\']').prop('checked', this.checked);"></th>
            <th>ID</th>
            <th>科目</th>
            <th>试题类型</th>
            <th>试题题目</th>
            <th>录入人/录入时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody id="ajaxList">
        {if empty(questionList)}
        <tr role="row">
            <td colspan="9" align="center">暂无数据</td>
        </tr>
        {/if}
        {foreach name="questionList" item="v" key="k" }
        <tr role="row">
            <td style="display:none"><input type="checkbox" name="ids[]" value="{$v.id}"></td>
            <td>{$v.questionid}</td>
            <td>{$v.subject_name}</td>
            <td>{$v.qtype_name}</td>
            <!--<td>{$v.question|movehtml|subtext="50"}</td>-->
            <td>{$v.question|raw}</td>
            <td>{$v.user_name} / {$v.add_time|date='Y-m-d'}</td>
            <td>
                <a class="btn btn-primary" href="javascript:;" title="查看" onclick="openYemian('/index.php/Admin/Question/questionEdit/id/{$v.questionid}','编辑试题')"><i class="fa fa-pencil"></i></a>
                <a class="btn btn-danger" href="javascript:void(0)" title="删除" onclick="delarticle(this,'确定删除该留言？此操作不可恢复！',{$v.questionid},'/index.php/Admin/Question/questionDel')"><i class="fa fa-trash-o"></i></a>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
</form>
<div>
    <div style="float:left;display:none"><a href="javascript:void(0);" onclick="reback_select()" id="button-delete6" data-toggle="tooltip" title="删除" class="btn btn-danger" data-original-title="放入回收站">把选中文章放入回收站</a></div>
    <div style="float:right;margin-top:-20px;" id="pagelist">{$questionPage|raw}<span style="float:right;margin:25px">共{$questionCount}条</span></div>
</div>
<script>
    // 点击分页触发的事件
    $(".pagination a").click(function(){
        url = $(this).attr('href');
        ajax_get_table('formSearch',url);
        return false;
    });
</script>